package cn.cheln.support.runtime;

import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.content.ComponentName;
import android.content.Context;
import java.util.Iterator;
import java.util.List;

public class ServiceUtil
{
  public static boolean isServiceStarted(Context paramContext, String paramString)
  {
    try
    {
      int i;
      Iterator localIterator = ((ActivityManager)paramContext.getSystemService("activity")).getRunningServices(1000).iterator();
      do
      {
        if (!(localIterator.hasNext()))
          return false;
        i = ((ActivityManager.RunningServiceInfo)localIterator.next()).service.getPackageName().compareTo(paramString);
      }
      while (i != 0);
      return true;
    }
    catch (SecurityException localSecurityException)
    {
      localSecurityException.printStackTrace();
    }
    return false;
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.support.runtime.ServiceUtil
 * JD-Core Version:    0.5.2
 */